var mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');

var Schema =mongoose.Schema;

var CommentSchema=new Schema({
	name:String,
	password:String,
	date:{type:Date,default:Date.now}
})
CommentSchema.plugin(mongoosePaginate);
var Comment= mongoose.model('Comment',CommentSchema,'comment');
module.exports =Comment